Move version into a generated (yet committed) file so it can be shared between the...
authorrobertl <robertl>
Mon, 13 Nov 2006 21:07:28 +0000 (21:07 +0000)
committerrobertl <robertl>
Mon, 13 Nov 2006 21:07:28 +0000 (21:07 +0000)
Makefile.in
configure
configure.in
gbversion.h [new file with mode: 0644]
gbversion.h.in [new file with mode: 0644]
globals.c
msvc/config.h

index 8cbe6d6300f09cdbe44b0945468690b93951090d..bb0213d1c68aa3d4289b28430227bb9d6bb7e3ea 100644 (file)
@@ -10,7 +10,7 @@ VERSIOND=$(VERSD)$(RELEASE)
 VERSIONU=$(VERSU)$(RELEASE)
 
 DOCVERSION=development
-DOCVERSION=@PACKAGE_VERSION@
+DOCVERSION=@PACKAGE_VERSION@
 
 CC=@CC@
 EXEEXT=@EXEEXT@
@@ -107,9 +107,6 @@ gpsbabel-debug: $(OBJS)
 Makefile: Makefile.in config.status
        CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 
 
-globals.o:
-       $(CC)  @CPPFLAGS@ -c $(GBCFLAGS) -DVERSION=\"$(VERSIOND)\" $< $(OUTPUT_SWITCH)$@
-
 jeeps/gpslibusb.o: 
        $(CC)  @CPPFLAGS@ -c $(GBCFLAGS) @USB_CFLAGS@ @srcdir@/jeeps/gpslibusb.c $(OUTPUT_SWITCH)$@
 
@@ -397,7 +394,7 @@ geoniche.o: geoniche.c defs.h config.h queue.h gbtypes.h zlib/zlib.h \
   jeeps/gpsread.h jeeps/gpsutil.h jeeps/gpsapp.h jeeps/gpsprot.h \
   jeeps/gpscom.h jeeps/gpsfmt.h jeeps/gpsmath.h jeeps/gpsmem.h \
   jeeps/gpsrqst.h jeeps/gpsinput.h jeeps/gpsproj.h garmin_tables.h
-globals.o: globals.c defs.h config.h queue.h gbtypes.h zlib/zlib.h \
+globals.o: globals.c defs.h gbversion.h config.h queue.h gbtypes.h zlib/zlib.h \
   zlib/zconf.h gbfile.h cet.h cet_util.h inifile.h
 glogbook.o: glogbook.c defs.h config.h queue.h gbtypes.h zlib/zlib.h \
   zlib/zconf.h gbfile.h cet.h cet_util.h inifile.h xmlgeneric.h
index 9b7086aaabe933a7d8217130341d52277bee215c..0fe2969085dbfc548b50797e4cb1259bfd11b00b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1281,7 +1281,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 # YYYYMMDD, please, if beta, i.e. "-beta20060413"
-PACKAGE_RELEASE=""
+PACKAGE_RELEASE="-beta20061113"
 
 cat >>confdefs.h <<_ACEOF
 #define PACKAGE_RELEASE "$PACKAGE_RELEASE"
@@ -3448,7 +3448,7 @@ fi
 done
 
 
-                                                                                ac_config_files="$ac_config_files Makefile xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc coldsync/Makefile jeeps/Makefile shapelib/Makefile zlib/empty"
+                                                                                          ac_config_files="$ac_config_files Makefile gbversion.h xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc coldsync/Makefile jeeps/Makefile shapelib/Makefile zlib/empty"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -3976,6 +3976,7 @@ do
   case "$ac_config_target" in
   # Handling of arguments.
   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+  "gbversion.h" ) CONFIG_FILES="$CONFIG_FILES gbversion.h" ;;
   "xmldoc/makedoc" ) CONFIG_FILES="$CONFIG_FILES xmldoc/makedoc" ;;
   "tools/mkcapabilities" ) CONFIG_FILES="$CONFIG_FILES tools/mkcapabilities" ;;
   "win32/gpsbabel.rc" ) CONFIG_FILES="$CONFIG_FILES win32/gpsbabel.rc" ;;
index 21d196957e7a5b39076a7892292b498afe51185c..7bba3b118171286c25bd2decd3abb5155c05597a 100644 (file)
@@ -3,10 +3,10 @@
 
 AC_PREREQ(2.59)
 
-AC_INIT(GPSBabel, 1.3.2-1109, BUG-REPORT-ADDRESS)
+AC_INIT(GPSBabel, 1.3.2, BUG-REPORT-ADDRESS)
 
 # YYYYMMDD, please, if beta, i.e. "-beta20060413"
-PACKAGE_RELEASE=""
+PACKAGE_RELEASE="-beta20061113"
 AC_DEFINE_UNQUOTED(PACKAGE_RELEASE, "$PACKAGE_RELEASE", [Define to the release name of this package.])
 AC_SUBST(PACKAGE_RELEASE)
 
@@ -274,5 +274,5 @@ AC_SUBST(DOCDIR)
 # AC_CHECK_FUNCS([atexit floor localtime_r memmove memset pow select sqrt strchr strcspn strdup strerror strncasecmp strrchr strspn strstr strtol strtoul])
 AC_CHECK_FUNCS([nanosleep sleep])
 
-AC_CONFIG_FILES([Makefile xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc coldsync/Makefile jeeps/Makefile shapelib/Makefile zlib/empty])
+AC_CONFIG_FILES([Makefile gbversion.h xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc coldsync/Makefile jeeps/Makefile shapelib/Makefile zlib/empty])
 AC_OUTPUT
diff --git a/gbversion.h b/gbversion.h
new file mode 100644 (file)
index 0000000..a6237f2
--- /dev/null
@@ -0,0 +1,2 @@
+#define VERSION "1.3.2-beta20061113"
+
diff --git a/gbversion.h.in b/gbversion.h.in
new file mode 100644 (file)
index 0000000..cb98510
--- /dev/null
@@ -0,0 +1,2 @@
+#define VERSION "@GBMAJOR@.@GBMINOR@.@GBMICRO@@PACKAGE_RELEASE@"
+
index 72e343d3a66760802a0b2a94696d2f4527eca91c..f51201caa502ed48139d6acbde4b374380e2df30 100644 (file)
--- a/globals.c
+++ b/globals.c
@@ -21,6 +21,7 @@
 
 
 #include "defs.h"
+#include "gbversion.h"
 
 global_options global_opts;
 const char gpsbabel_version[] = VERSION;
index c76826c3d20fee8b987ae05a0cbffea98203ae20..39219e1028fd102c8f78ed4e04505f26cced7489 100644 (file)
@@ -22,7 +22,3 @@
 
 #define ZLIB_INHIBITED 1
 
-/* We really should figure out some way to get this from autoconf into
- * a file so that the MSVC build can pick it up
- */
-#define VERSION "1.3.2-1109"